package com.itheima.可变参数;

public class Demo1 {
    public static void main(String[] args) {
        int[] a={1,2,3,4,5,6,7,8};
        kebian(1,2,3,4,5,6,7,8);
        kebian(a);
    }

    private static void kebian(int ... a) {
        for (int i = 0; i < a.length; i++) {
            System.out.print(a[i]+"...");
        }
        System.out.println();
    }
}
